import 'babel-polyfill'
import Vue from 'vue'
import App from './App.vue'
import store from './store'
import router from './router'
import SvgIcon from '@/components/SvgIcon.vue'
import {
    nowTime,
    barChart,
    pieChart,
    acrossChart,
    map,
    getUUID,
    cross,
    barChart2,
    pietf,
    areaBar
} from '@/utils/lib.js'
import vueSwiper from 'vue-awesome-swiper'
import 'swiper/dist/css/swiper.css'

// import echarts from 'echarts'
import echarts from 'echarts/lib/echarts'

import '@/permission'
// import ViewUI from 'view-design';
import 'view-design/dist/styles/iview.css';
import { Message } from 'view-design';
Vue.prototype.$Message = Message

// Vue.component('Message', Message);
// Vue.component('Table', Table);
//
// Vue.use(ViewUI);
Vue.component('SvgIcon', SvgIcon)
Vue.config.productionTip = false
Vue.use(vueSwiper)

Vue.prototype.$lib = {
    nowTime,
    barChart,
    barChart2,
    pieChart,
    acrossChart,
    map,
    getUUID,
    cross,
    pietf,
    areaBar
}
Vue.prototype.$echarts = echarts;
new Vue({
    router,
    store,
    render: h => h(App),
}).$mount('#app')